<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ include file="cfmt/tldImport.jsp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>会员帐号充值</title>
<script language="javascript" src="js/page.js"> </script>
<link  href="css/style.css"  rel="stylesheet" type="text/css"/>
</head>
<body>
<div  class="page">
<form action="AdminServlet?choose=3" name="form1" method="post">
	<div style="margin-top: 50px; margin-left:350px;">
	<b>会员状态:</b>
	<select name="State">
	<option selected="selected" value="2">不限</option>
	<option value="0">禁用</option>
	<option value="1">正常</option>
	</select>
	<input type="submit" name="Submit" value="查询"/>
	</div>	
</form>

<table width="300px" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="cs">会员编号</td>
    <td class="cs">会员名称</td>
    <td class="cs">当前余额</td>
    <td class="cs">电话号码</td>
    <td class="cs">操作</td>
  </tr>
  
	<c:forEach var="user" items="${user}">
		 <tr>
	    <td id="UserId">${user.userId}</td>
	    <td>${user.userName}</td>
	    <td>${user.money}</td>
	    <td>${user.telNo}</td>
	    <td  style="font-size:12px;"><a href="AdminGuanliXiangxiServlet?Uid=${user.id}">详细</a>&nbsp;
	    <c:if test="${user.userState==0}"><a href="AdminGuanliServlet?choose=2&Id=${user.id}">禁用</a></c:if>
	    <c:if test="${user.userState==1}"><a href="AdminGuanliServlet?choose=3&Id=${user.id}">启用</a></c:if>
	    <a href="AdminGuanliServlet?choose=4&Id=${user.id}">删除</a>
	    </td>
	    </tr>
	</c:forEach>
</table> 
	</div>

	<div id="Box" style="width:300px; height:280px; background-color:red; border:1px solid; color:#000000;position: absolute; top:150px;left:250px; display:<%=request.getAttribute("Num")==null?"none":request.getAttribute("Num")%>">
		<div style="width:100%; background-color:yellow; margin-top:10px;" align="center">用户详细信息</div>
		<table cellpadding="0px;" cellspacing="0px;" style="margin-top: 0px; font-size:12px;">
			<tr>
				<td>用户ID:</td>
				<td>${user1.userId}</td>
			</tr>
			<tr>
				<td width="150px">真实名:</td>
				<td>${user1.userName}</td>
			</tr>
			<tr>
				<td width="150px">用户级别:</td>
				<td>${user1.memberTypeId}</td>
			</tr>
			<tr>
				<td width="150px">性  别:</td>
				<td><c:if test="${user1.gender==1}">男</c:if><c:if test="${user1.gender==0}">女</c:if></td>
			</tr>
			<tr>
				<td width="150px">电  话:</td>
				<td>${user1.telNo}</td>
			</tr>
			<tr>
				<td width="150px">住   址:</td>
				<td>${user1.address}</td>
			</tr>
			<tr>
				<td width="150px">账户余额:</td>
				<td>${user1.money}</td>
			</tr>
			<tr>
				<td width="150px">积   分:</td>
				<td>${user1.sumScore}</td>
			</tr>
			<tr>
				<td width="150px">用户状态:</td>
				<td><c:if test="${user1.userState==0}">禁用状态</c:if><c:if test="${user1.userState==1}">正常状态</c:if></td>
			</tr>
			<tr>
				<td colspan="2" align="center"><input type="button" value="关闭" onclick="into()"/></td>
			</tr>
		</table>
		</div>

<script>
	function into()
	{
		document.getElementById("Box").style.display="none";
	}

</script>

</body>
</html>
